package com.test.spring.annotation.repository;

import com.test.spring.annotation.TestObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/27 9:41
 */

@Repository("repository")
public class UserRepositoryImpl implements UserRepository {
    @Autowired(required = false)
    private TestObject object;

    @Override
    public void save() {
        System.out.println("UserRepository save()...");
        System.out.println(object);
    }
}
